﻿using System.Collections.Generic;
using ProtoBuf;
namespace PnJ.Aliyun.OTS.Models
{
    [ProtoContract(Name = "GetRangeResponse")]
    public class GetRangeResponse
    {
        private List<Column> nextStartPrimaryKey = new List<Column>();
        private List<Row> rows = new List<Row>();
        /// <summary>
        /// 本次操作消耗的服务能力单元
        /// </summary>
        [ProtoMember(1, Name = "consumed", IsRequired = true)]
        public ConsumedCapacity Consumed { get; set; }
        /// <summary>
        /// 本次GetRange操作的断点信息
        /// </summary>
        [ProtoMember(2, Name = "next_start_primary_key")]
        public List<Column> NextStartPrimaryKey { get { return nextStartPrimaryKey; } set { nextStartPrimaryKey = value; } } // missing means hitting the end
        /// <summary>
        /// 读取到的所有数据
        /// </summary>
        [ProtoMember(3, Name = "rows")]
        public List<Row> Rows {get { return rows; } set { rows = value; } }
        }
}
